﻿using Microsoft.Phone.Controls;
using System;
using System.Reflection;
namespace BootyShaker
{
    public partial class AboutPage : PhoneApplicationPage
    {
        public AboutPage()
        {
            InitializeComponent();

        }

        private void Image_Rate(object sender, System.Windows.Input.GestureEventArgs e)
        {
            Microsoft.Phone.Tasks.MarketplaceReviewTask marketplaceReviewTask = new Microsoft.Phone.Tasks.MarketplaceReviewTask();
            marketplaceReviewTask.Show();
        }

        private void Image_Buy(object sender, System.Windows.Input.GestureEventArgs e)
        {
            //Show an application, using the default ContentType.
            Microsoft.Phone.Tasks.MarketplaceDetailTask marketplaceDetailTask = new Microsoft.Phone.Tasks.MarketplaceDetailTask();
            marketplaceDetailTask.ContentIdentifier = "740b92a7-39e3-4db5-94ec-5ddcff342cec";
            marketplaceDetailTask.Show();
        }
        private void Image_Email(object sender, System.Windows.Input.GestureEventArgs e)
        {
            Microsoft.Phone.Tasks.EmailComposeTask emailcomposer = new Microsoft.Phone.Tasks.EmailComposeTask();
            emailcomposer.To = "bootyshaker@motif.lt";
            emailcomposer.Subject = "";
            emailcomposer.Body = "";
            emailcomposer.Show();

        }

        private void PhoneApplicationPage_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            Version v = new AssemblyName(Assembly.GetExecutingAssembly().FullName).Version;
            Version.Text = String.Format("Version {0}.{1}.{2}", v.Major, v.Minor, v.Build);
        
        }

        private void Image_ImageFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
        {

        }

    }
}